<script setup>
import { ref } from 'vue'

const count = ref(0)
const validate = () => {
  console.log('表单校验')
}
// 组件里可以把属性或者方法暴露给父级使用
defineExpose({
  count,
  validate
})
</script>

<template>
  <div class="form-page">他是个儿子</div>
</template>

<style scoped></style>
